import Vue from 'vue'
import Router from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      meta: {
        keepAlive: true // 需要缓存
      }
    },{
      path:'/information',
      name:'information',
      component: () => import('../views/Information.vue'),
      children: [
        {
          path:'/information/',
          name: 'blog_mr',
          component: () => import('../views/Blog_xq.vue'),
        },{
          path:'/information/blog',
          name: 'blog_xq',
          component: () => import('../views/Blog_xq.vue'),
        }
      ]    
    },{
      path: '/about',
      name: 'about',
      component: () => import('../views/About.vue')
    },{
      path:'/details',
      name:'details',
      component: () => import('../views/Details.vue')    
    },{
      path:'/contribute',
      name:'contribute',
      component: () => import('../views/Contribute.vue')    
    },{
      path:'/login',
      name:'login',
      component: () => import('../views/Login.vue')    
    },{
      path:'/register',
      name:'register',
      component: () => import('../views/Register.vue')    
    },{
      path:'/Album',
      name:'lbum',
      component: () => import('../views/Album.vue')    
    }
    
  ]
})
